package com.ny.aa.impl;

import com.ny.aa.MangerService;
import com.ny.demo525.ManagerDao;
import com.ny.demo525.impl.ManagerDaoImpl;
import com.ny.entity.Manager;

import java.sql.SQLException;

    public class MangerServiceImpl implements MangerService {
        private ManagerDao managerDao = new ManagerDaoImpl();

        public MangerServiceImpl() throws SQLException, ClassNotFoundException {
        }


        @Override
        public Manager log(String name, String pwd) throws SQLException {
            return managerDao.log(name, pwd);
        }
    }